<script>
	export default {
		onLaunch: function() {
			if (this.$Common.isLogin()) {
			  let sender = uni.getStorageSync("sender");
			  if (sender) {
				this.$store.commit("setPropName", {
					propName: 'sender',
					value: JSON.parse(sender)
				});
			  }
			  this.$Common.reLaunch("/chatUser/chatUser");
			}else{
				this.$Common.redirectTo("/index/index");
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import url("@/static/iconfont/iconfont.css");
	@import url("@/static/css/common.css");
</style>
